package com.thought.wxsession.utils.message;

import lombok.Data;

/**
 * @author zhuqinyue
 */
@Data
public class RabbitMqMessage {

    /**
     * 消息主体
     */
    private Object message;
    /**
     * 路由键（队列名称）
     */
    private String routingKey;
    /**
     * 交换机名称
     */
    private String exchange;

    public RabbitMqMessage(String routingKey, Object message) {
        this.routingKey = routingKey;
        this.message = message;
    }

    public RabbitMqMessage(String routingKey, String exchange, Object message) {
        this.routingKey = routingKey;
        this.message = message;
        this.exchange = exchange;
    }
}
